package com.sunfeng.chap14;

import java.nio.ByteBuffer;

public class Test2 {
    public static void main(String[] args) {
        System.out.println("AA");
        ByteBuffer byteBuffer = ByteBuffer.allocateDirect(Integer.MAX_VALUE);
        System.out.println("BA");
        byte[] bytes=new byte[]{'a'};
        System.out.println(Integer.MAX_VALUE);
        for (int i = 0; i < Integer.MAX_VALUE; i++) {
            byteBuffer.put(bytes);
        }
        System.out.println("end");


    }
}
